package cn.com.db.Jwt;

import cn.com.Enum.UserClientId;

/**
 * Created with IntelliJ IDEA.
 * User: yue
 * Date: 2018-03-28
 * Time: 22:07
 * Description:
 */
public class Data{
    private String email;
    private String unionid;
    private String id;
    private UserClientId clientId;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public UserClientId getClientId() {
        return clientId;
    }
    public void setClientId(String clientId) {
        this.clientId = UserClientId.getEnum(clientId);
    }

    public void setUserType(){

    }


    @Override
    public String toString() {
        return "Data{" +
                "email='" + email + '\'' +
                ", unionid='" + unionid + '\'' +
                ", id='" + id + '\'' +
                ", clientId=" + clientId +
                '}';
    }
}
